# New ports collection makefile for: py-thunarx
# Date created:		2011-03-26
# Whom:		Olivier Duchateau <duchateau.olivier@gmail.com>
#
# $FreeBSD: $
#

PORTNAME=	thunarx
PORTVERSION=	0.3.0
CATEGORIES=	x11-fm python
MASTER_SITES=	${MASTER_SITE_XFCE}
MASTER_SITE_SUBDIR=	src/bindings/${PORTNAME}-python/${PORTVERSION:R}
DISTNAME=	${PORTNAME}-python-${PORTVERSION}
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DIST_SUBDIR=	xfce4

MAINTAINER=	duchateau.olivier@gmail.com
COMMENT=	Python bindings for Thunar

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

USE_BZIP2=	yes
USE_PYTHON=	yes
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_AUTOTOOLS=	libtool
USE_GNOME=	gnomehack pygobject pygtk2 pkgconfig
USE_XFCE=	configenv thunar

CONFIGURE_ARGS+=	--without-html-dir
CONFIGURE_ENV+=	ac_cv_prog_AWK="${AWK}"

NO_MTREE=	yes

post-build:
	${FIND} ${WRKSRC} -name 'Makefile' -type f \
		| ${XARGS} ${REINPLACE_CMD} -e \
		's|prefix = /usr/local|prefix = ${PREFIX}|g'

.include <bsd.port.mk>
